{#
# $Id: script.j2 7eaaa50bb501 2013/07/17 05:34:21 pgurumur $
#
# Copyright (c) 2012 Prabhu Gurumurthy <pgurumur@gmail.com>
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
# File generated on Sat Aug 25, 2012 @ 00:44:54

__version__  = "$Revision: 7eaaa50bb501 $"
__author__   = "$Author: pgurumur $"
__modified__ = "$Date: 2013-07-17 05:34:21Z $"

#}

{%- set randvalue = 12|randstring %}
{%- set datevalue = 0|date %}
{%- set user = "USER"|env %}
{%- if interpreter in ("lua", "sql")  -%}
   {% set cm = "--" %}
{%- elif interpreter in ("c", "cpp", "javascript") -%}
   {% set cm = " *" %}
{%- else -%}
   {% set cm = "#" %}
{%- endif %}

{%- if interpreter == "sh" -%}
#!/bin/sh -f
{%- elif interpreter == "awk" -%}
#!/usr/bin/awk -f
{%- elif interpreter == "sed" -%}
#!/usr/bin/sed -f
{%- elif interpreter == "bc" -%}
#!/usr/bin/bc -lq
{%- elif interpreter == "sql" -%}
-- SQL file {{ name }}
{%- elif interpreter == "make" -%}
{{ cm }} 
{%- elif interpreter in ("c", "cpp", "javascript") -%}
/*
{%- elif interpreter == "html" -%}
<!--
{%- elif interpreter == "jinja" -%}
{{ '{#' }}
{%- else -%}
   {%- if module == 0 -%}
      {%- if version == 0 -%}
#!/usr/bin/env {{ interpreter }}
      {%- else -%}
#!/usr/bin/env {{ interpreter }}{{ version }}
      {%- endif -%}
   {%- else -%}
{{ cm }} module name {{ name }}
   {%- endif -%}
{% endif %}
{{ cm }} $Id: script.j2 7eaaa50bb501 2013/07/17 05:34:21 pgurumur $
{{ cm }} Copyright (c) {{ year }} Prabhu Gurumurthy <pgurumur@gmail.com>
{{ cm }}
{{ cm }} Permission to use, copy, modify, and distribute this software for any
{{ cm }} purpose with or without fee is hereby granted, provided that the above
{{ cm }} copyright notice and this permission notice appear in all copies.
{{ cm }}
{{ cm }} THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
{{ cm }} WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
{{ cm }} MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
{{ cm }} ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
{{ cm }} WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
{{ cm }} ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
{{ cm }} OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
{{ cm }}
{{ cm }} File {{ name }} generated on {{ datevalue }}
{{ cm }}
{% if interpreter in ("c", "cpp", "javascript") -%}
{% raw %} */ {% endraw %}
{% endif %}

{%- if interpreter in ("py", "python") -%}
__version__  = "$Revision: 7eaaa50bb501 $"
__author__   = "$Author: pgurumur $"
__modified__ = "$Date: 2013-07-17 05:34:21Z $"
{%- elif interpreter in ("c", "javascript") %}
/* __version__  = "$Revision: 7eaaa50bb501 $" */
/* __author__   = "$Author: pgurumur $"   */
/* __modified__ = "$Date: 2013-07-17 05:34:21Z $"     */
{%- elif interpreter == "cpp" %}
// __version__  = "$Revision: 7eaaa50bb501 $"
// __author__   = "$Author: pgurumur $"
// __modified__ = "$Date: 2013-07-17 05:34:21Z $"
{%- elif interpreter == "html" %}
__version__  = "$Revision: 7eaaa50bb501 $"
__author__   = "$Author: pgurumur $"
__modified__ = "$Date: 2013-07-17 05:34:21Z $"
--!>
{%- elif interpreter == "jinja" %}
__version__  = "$Revision: 7eaaa50bb501 $"
__author__   = "$Author: pgurumur $"
__modified__ = "$Date: 2013-07-17 05:34:21Z $"
{{ '#}' }}
{% else -%}
{{ cm }} __version__  = "$Revision: 7eaaa50bb501 $"
{{ cm }} __author__   = "$Author: pgurumur $"
{{ cm }} __modified__ = "$Date: 2013-07-17 05:34:21Z $"
{%- endif -%}
